package net.esj.basic.core.view.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.config.Configuration;
import com.opensymphony.xwork2.inject.Inject;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class TestConfigPrintInterceptor extends AbstractInterceptor {

	Configuration configuration;
	
	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		for(String pn : configuration.getPackageConfigNames()){
			System.out.println();
		}
		return null;
	}

	@Inject
	public void setConfiguration(Configuration configuration) {
		this.configuration = configuration;
	}

	
}
